/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.dynread.com
 */
package com.dynread.mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 商品分类树形结构
 *
 * @author drinvay
 * @date 2022/5/4 22:45
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GoodsCategoryTree extends TreeNode {
    private static final long serialVersionUID = 1L;

    /**
     * 启用状态（0关闭 1开启）
     */
    @ApiModelProperty(value = "启用状态（0关闭 1开启）")
    private String enable;

    /**
     * 父类ID
     */
    @ApiModelProperty(value = "父类ID")
    private String parentId;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String picUrl;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 最后更新时间
     */
    @ApiModelProperty(value = "最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 删除标志（0未删除 1已删除）
     */
    @ApiModelProperty(value = "删除标志（0未删除 1已删除）")
    private String delFlag;
}
